package com.woniu;

public class FactoryTest {
    public static void main(String[] args) {
        try {
            Person person = (Person)new Factory1().makePerson(Class.forName("com.woniu.impl.Chinese"));
            person.eat();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
